package com.zdya.combatdocuments.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.java_websocket.WebSocket;

import java.io.Serializable;

@Data
public class IdToIp implements Serializable {

    public IdToIp(){
    }

    public IdToIp(String ip, Long userId,WebSocket webSocket){
        this.ip = ip;
        this.userId = userId;
        this.webSocket = webSocket;
    }

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "节点ip地址")
    private String ip;

    @ApiModelProperty(value = "对应用户id")
    private Long userId;

    @ApiModelProperty(value = "节点对应websocket地址")
    private WebSocket webSocket;

}
